Optimal. Leaf size=91 \[ \frac{2 \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{c f}-\frac{\sqrt{2} \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{2} \sqrt{a \sec (e+f x)+a}}\right )}{c f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0824256, antiderivative size = 91, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185, Rules used = {21, 3776, 3774, 203, 3795} \[ \frac{2 \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a \sec (e+f x)+a}}\right )}{c f}-\frac{\sqrt{2} \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{2} \sqrt{a \sec (e+f x)+a}}\right )}{c f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 3776
Rule 3774
Rule 203
Rule 3795
Rubi steps
\begin{align*} \int \frac{\sqrt{a+a \sec (e+f x)}}{c+c \sec (e+f x)} \, dx &=\frac{a \int \frac{1}{\sqrt{a+a \sec (e+f x)}} \, dx}{c}\\ &=\frac{\int \sqrt{a+a \sec (e+f x)} \, dx}{c}-\frac{a \int \frac{\sec (e+f x)}{\sqrt{a+a \sec (e+f x)}} \, dx}{c}\\ &=-\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{a+x^2} \, dx,x,-\frac{a \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{c f}+\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{2 a+x^2} \, dx,x,-\frac{a \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{c f}\\ &=\frac{2 \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{a+a \sec (e+f x)}}\right )}{c f}-\frac{\sqrt{2} \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tan (e+f x)}{\sqrt{2} \sqrt{a+a \sec (e+f x)}}\right )}{c f}\\ \end{align*}
Mathematica [C] time = 0.706105, size = 133, normalized size = 1.46 \[ -\frac{i \sqrt{1+e^{2 i (e+f x)}} \sqrt{a (\sec (e+f x)+1)} \left (\sinh ^{-1}\left (e^{i (e+f x)}\right )-\sqrt{2} \tanh ^{-1}\left (\frac{-1+e^{i (e+f x)}}{\sqrt{2} \sqrt{1+e^{2 i (e+f x)}}}\right )-\tanh ^{-1}\left (\sqrt{1+e^{2 i (e+f x)}}\right )\right )}{c f \left (1+e^{i (e+f x)}\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.227, size = 141, normalized size = 1.6 \begin{align*} -{\frac{1}{fc}\sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}}\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}} \left ( \sqrt{2}{\it Artanh} \left ({\frac{\sqrt{2}\sin \left ( fx+e \right ) }{2\,\cos \left ( fx+e \right ) }\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}} \right ) +\ln \left ( -{\frac{1}{\sin \left ( fx+e \right ) } \left ( -\sqrt{-2\,{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}\sin \left ( fx+e \right ) +\cos \left ( fx+e \right ) -1 \right ) } \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a \sec \left (f x + e\right ) + a}}{c \sec \left (f x + e\right ) + c}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.58395, size = 782, normalized size = 8.59 \begin{align*} \left [\frac{\sqrt{2} \sqrt{-a} \log \left (\frac{2 \, \sqrt{2} \sqrt{-a} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + 3 \, a \cos \left (f x + e\right )^{2} + 2 \, a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right )^{2} + 2 \, \cos \left (f x + e\right ) + 1}\right ) + 2 \, \sqrt{-a} \log \left (\frac{2 \, a \cos \left (f x + e\right )^{2} - 2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right ) + 1}\right )}{2 \, c f}, \frac{\sqrt{2} \sqrt{a} \arctan \left (\frac{\sqrt{2} \sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt{a} \sin \left (f x + e\right )}\right ) - 2 \, \sqrt{a} \arctan \left (\frac{\sqrt{\frac{a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt{a} \sin \left (f x + e\right )}\right )}{c f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\sqrt{a \sec{\left (e + f x \right )} + a}}{\sec{\left (e + f x \right )} + 1}\, dx}{c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]